//
//  NSString+TYJSONSerialization.m
//  TYFoundation
//
//  Created by devp on 14-10-30.
//  Copyright (c) 2014年 ND. All rights reserved.
//

#import "NSString+TYJSONSerialization.h"
#import "NSData+TYJSONSerialization.h"

@implementation NSString (TYJSONSerialization)
- (id)ty_jsonValue {
    return [self ty_jsonValueWithError:nil];
}

- (id)ty_jsonValueWithError:(NSError * __autoreleasing *)error {
	
    return [[self dataUsingEncoding:NSUTF8StringEncoding] ty_jsonValueWithError:error];
}
- (id)ty_jsonValueWithOptions:(NSJSONReadingOptions)options error:(NSError * __autoreleasing *)error {
    return [[self dataUsingEncoding:NSUTF8StringEncoding] ty_jsonValueWithOptions:options error:error];
}
@end
